package com.ruoyi.system.domain.aid;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 物资捐赠对象 aid_donation
 */
public class AidDonation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 捐赠ID */
    @Excel(name = "捐赠ID")
    private Long donationId;

    /** 捐赠标题 */
    @Excel(name = "捐赠标题")
    private String donationTitle;

    /** 物资类别 */
    @Excel(name = "物资类别")
    private String materialType;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 捐赠人 */
    @Excel(name = "捐赠人")
    private String donorName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactInfo;

    /** 捐赠地区 */
    @Excel(name = "捐赠地区")
    private String region;

    /** 期望交付日期 */
    @Excel(name = "期望交付日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedTime;

    public Long getDonationId() {
        return donationId;
    }

    public void setDonationId(Long donationId) {
        this.donationId = donationId;
    }

    public String getDonationTitle() {
        return donationTitle;
    }

    public void setDonationTitle(String donationTitle) {
        this.donationTitle = donationTitle;
    }

    public String getMaterialType() {
        return materialType;
    }

    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDonorName() {
        return donorName;
    }

    public void setDonorName(String donorName) {
        this.donorName = donorName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContactInfo() {
        return contactInfo;
    }

    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Date getExpectedTime() {
        return expectedTime;
    }

    public void setExpectedTime(Date expectedTime) {
        this.expectedTime = expectedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("donationId", getDonationId())
            .append("donationTitle", getDonationTitle())
            .append("materialType", getMaterialType())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("status", getStatus())
            .append("donorName", getDonorName())
            .append("contactPhone", getContactPhone())
            .append("address", getAddress())
            .append("description", getDescription())
            .append("contactInfo", getContactInfo())
            .append("region", getRegion())
            .append("expectedTime", getExpectedTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 